package com.lsa.skienna.challenge.chap11.the111105_CuttingSticks;

import java.util.Arrays;
import java.util.List;

public class T {

    /**
     * @param args
     */
    public static void main(String[] args) {
        List<?> l = Arrays.asList(0,1,2,3);
        for (int i = 0; i < l.size(); i++) {
            cuts(l, i);
        }
    }
    
    static void cuts(List<?> l, int split) {
        System.out.print(l.subList(0, split));
        System.out.print(" " + split + " ");
        System.out.println(l.subList(split+1, l.size()));
    }
}
